﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace ConsoleApp1.Models.DB {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_devFunction", DisableSyncStructure = true)]
	public partial class TDevFunction {

		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		[JsonProperty]
		public DateTime? Createtime { get; set; }

		[JsonProperty, Column(Name = "functionRes", StringLength = -2)]
		public string FunctionRes { get; set; }

		[JsonProperty, Column(Name = "functionStr", StringLength = 50)]
		public string FunctionStr { get; set; }

		/// <summary>
		/// 电缆位移II:2是设置通道启用,3是上送设备信息,4是设置通达基准值。光纤测温:3是设置分区
		/// </summary>
		[JsonProperty, Column(Name = "functionType")]
		public int? FunctionType { get; set; }

		[JsonProperty, Column(Name = "isEffect")]
		public bool? IsEffect { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		[JsonProperty]
		public DateTime? Time { get; set; }

	}

}
